package cn.edu.uestc.topo;

public class Main {

    public static void main(String[] args) {
        System.out.println("Generate Topo...");
//        JsonGen.generateLowResources();
//        JsonGen.generateMidResources();

        String currentNetworkLocation = "C:/Resources/topo/topo_current/";
        String stressNetworkLocation = "C:/Resources/topo/topo_stress/";

        StressGen stressGen = new StressGen();

        // Current Newtwork
        stressGen.generateTopoResource(currentNetworkLocation);
        stressGen.generateTunnelInfoStatResource(currentNetworkLocation, 1);
        stressGen.generateTunnelInfoStatResource(currentNetworkLocation, 5);
        stressGen.generateTunnelInfoStatResource(currentNetworkLocation, 50);
        stressGen.generateTunnelInfoStatResource(currentNetworkLocation, 500);
        stressGen.generateTunnelInfoStatResource(currentNetworkLocation, 2500);
        stressGen.generateTunnelInfoStatResource(currentNetworkLocation, 5000);
        stressGen.generateTunnelInfoStatResource(currentNetworkLocation, 10000);
        stressGen.generateTunnelInfoStatResource(currentNetworkLocation, 25000);
        stressGen.generateTunnelInfoStatResource(currentNetworkLocation, 50000);
        stressGen.generateTunnelInfoStatResource(currentNetworkLocation, -1);

        // Stress Network
        stressGen.generateTopoResource(stressNetworkLocation);
        stressGen.generateTunnelInfoStatResource(stressNetworkLocation, 1);
        stressGen.generateTunnelInfoStatResource(stressNetworkLocation, 5);
        stressGen.generateTunnelInfoStatResource(stressNetworkLocation, 50);
        stressGen.generateTunnelInfoStatResource(stressNetworkLocation, 500);
        stressGen.generateTunnelInfoStatResource(stressNetworkLocation, 2500);
        stressGen.generateTunnelInfoStatResource(stressNetworkLocation, 5000);
        stressGen.generateTunnelInfoStatResource(stressNetworkLocation, 10000);
        stressGen.generateTunnelInfoStatResource(stressNetworkLocation, 25000);
        stressGen.generateTunnelInfoStatResource(stressNetworkLocation, 50000);
        stressGen.generateTunnelInfoStatResource(stressNetworkLocation, -1);
    }
}
